package com.icss.head.servlet;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.icss.common.servlet.BaseServlet;
import com.icss.service.IProductDbService;
import com.icss.service.impl.ProductDbServiceImpl;

/**
 * 商品前台操作
 * 
 * @author 陈岩
 */
@WebServlet(urlPatterns = "/head/ProductHeadServlet")
public class ProductHeadServlet extends BaseServlet
{
	private IProductDbService productDbService;
	
	@Override
	public void init(ServletConfig config) throws ServletException
	{
		super.init(config);
		this.productDbService = new ProductDbServiceImpl();
	}
	
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException
	{
		/* 接收参数 */
		String method = request.getParameter("method");
		if ("commentList".equalsIgnoreCase(method))
		{
			/* commentList */
			//commentList(request, response);
		}
	}
}
